package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 志愿者对象 sys_volunteers
 * 
 * @author zk
 * @date 2021-11-08
 */
public class SysVolunteers extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 志愿者姓名 */
    @Excel(name = "志愿者姓名")
    private String vname;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 出生日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date borndate;

    /** 民族 */
    @Excel(name = "民族")
    private String nation;

    /** 籍贯 */
    @Excel(name = "籍贯")
    private String home;

    /** 身高 */
    @Excel(name = "身高")
    private Long height;

    /** 身份证号 */
    @Excel(name = "身份证号")
    private String idcard;

    /** 手机号码 */
    @Excel(name = "手机号码")
    private String phone;

    /** 个人简介 */
    @Excel(name = "个人简介")
    private String personinfo;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setVname(String vname) 
    {
        this.vname = vname;
    }

    public String getVname() 
    {
        return vname;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setBorndate(Date borndate) 
    {
        this.borndate = borndate;
    }

    public Date getBorndate() 
    {
        return borndate;
    }
    public void setNation(String nation) 
    {
        this.nation = nation;
    }

    public String getNation() 
    {
        return nation;
    }
    public void setHome(String home) 
    {
        this.home = home;
    }

    public String getHome() 
    {
        return home;
    }
    public void setHeight(Long height) 
    {
        this.height = height;
    }

    public Long getHeight() 
    {
        return height;
    }
    public void setIdcard(String idcard) 
    {
        this.idcard = idcard;
    }

    public String getIdcard() 
    {
        return idcard;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPersoninfo(String personinfo) 
    {
        this.personinfo = personinfo;
    }

    public String getPersoninfo() 
    {
        return personinfo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("vname", getVname())
            .append("sex", getSex())
            .append("borndate", getBorndate())
            .append("nation", getNation())
            .append("home", getHome())
            .append("height", getHeight())
            .append("idcard", getIdcard())
            .append("phone", getPhone())
            .append("personinfo", getPersoninfo())
            .toString();
    }
}
